﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ShoppingCart.aspx.cs" Inherits="University.Workshop.WebApp.ShoppingCart" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style3
        {
            width: 284px;
        }
    </style>
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
        <asp:View ID="FormView" runat="server">
            <h1>
                Your shopping cart</h1>
            <p>
                &nbsp;<asp:DataList ID="DataList1" runat="server">
                    <ItemTemplate>
                        <table style="width:139%;">
                            <tr>
                                <td class="style3">
                                    <asp:Label ID="ProductName" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                                </td>
                                <td>
                                    Quantity:
                                </td>
                                <td>
                                    &nbsp;
                                    <asp:Label ID="Quantity" runat="server" Text='<%#Eval("Quantity") %>'></asp:Label>
                                    &nbsp;</td>
                                <td>
                                    Price:</td>
                                <td>
                                    <asp:Label ID="ProductPrice" runat="server" Text='<%#Eval("Price") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="ProductCurrency" runat="server" Text='<%#Eval("Currency") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Button ID="Delete" runat="server" 
                                        CommandArgument='<%# Eval("ProductId")  %>' onclick="Delete_Click1" 
                                        Text="Delete" />
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
            </p>
            <asp:Label ID="errorLb" runat="server" ForeColor="Red"></asp:Label>
            <br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label2" runat="server" Text="Total Price:"></asp:Label>
            &nbsp;<asp:Label ID="totalCurrencylb" runat="server"></asp:Label>
            &nbsp;
            <asp:Label ID="totalPricelb" runat="server"></asp:Label>
            <br />
            <br />
            <br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="ContinueShopping" runat="server" 
                onclick="ContinueShopping_Click" Text="Continue Shopping" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="ProcededToCheckout" runat="server" 
                onclick="ProcededToCheckout_Click" Text="Proceded to check out" />
            <br />
        </asp:View>
        <asp:View ID="EmptyCartView" runat="server">
            <h2>
                Your shopping cart is empty, but it doesn't have to be
            </h2>
            <br />
            There&#39;s lots of great deals and one-of-a-kind items just waiting for you to bid 
            or buy now. <br />Start shopping, and look for the &quot;Add to cart&quot; button. You can 
            add several items to your cart from different sellers and pay for them all at 
            once.<br />
            <br />
            <asp:LinkButton ID="LinkButton1" runat="server" ForeColor="#000099" 
                onclick="LinkButton1_Click">Start shopping and search for great deals</asp:LinkButton>
            <br />
            <asp:LinkButton ID="LinkButton2" runat="server" ForeColor="#000099" 
                onclick="LinkButton2_Click">Go to My LQS and see items that you&#39;re watching</asp:LinkButton>
            <br />
        </asp:View>
    </asp:MultiView>
</asp:Content>
